package ooday05.demo;

public class Point {
    private int x;//私有的
    private int y;//私有的
    public int getx(){
        return x;
    }
    public void setX(int x){
        if (x>=0){
            this.x=x;
        }
    }
    public int gety(){
        return y;
    }
    public void sety(int y){
        this.y=y;
    }
}
